<h1>Delete user(<%=@user.login%>)</h1>
<%= error_messages_for :user %>

<% form_for(:user, :html => { :method => :put }) do |f| %>
  <p>Are you sure you wish to delete your account?</p>
  <p>
    <%= submit_tag "Yes" %>
    <%= link_to 'Cancel', user_path(@user) %> 
  </p>
<% end %>